sum = 0
n = eval(input())
for i in range(1, 2 * n, 2):
    sum += 1/i
print('sum = %.6f' % sum)